<template>
  登录
  <el-row class="mb-4">
    <el-button @click="guitWindow" type="primary">关闭窗口---通知主进程</el-button>
  </el-row>
</template>

<script setup>
let guitWindow = () => {
  alert(1111)
  // 渲染进程通信主进程
  console.log(electron)
  electron.ipcRenderer.invoke('close-window', {
    name: 'close-window',
    data: {
      dat: 'woshishuju'
    }

  })
}
</script>